﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LungSoundWizard.ViewModel
{
    public abstract class WizardViewModelBase : ObservableBase
    {
        WizardViewModelBase _nextPage;
        public virtual WizardViewModelBase NextPage
        {
            get { return _nextPage; }
            protected set { SetProperty(ref _nextPage, value); }
        }

        public abstract string Title
        {
            get;
        }

        bool _canGoNext = false;
        public virtual bool CanGoNext
        {
            get { return _canGoNext; }
            protected set { SetProperty(ref _canGoNext, value); }
        }

        public virtual void OnShow()
        {

        }

        public virtual void OnHide()
        {
        }

        public event EventHandler RequestNextPage;
        public void OnRequestNextPage()
        {
            if (RequestNextPage != null)
            {
                RequestNextPage(this, EventArgs.Empty);
            }
        }
    }
}
